package com.ms.p2p.provider.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.ms.p2p.bean.PageBean;
import com.ms.p2p.entity.member.Auth;
import com.ms.p2p.provider.CertiFiCationProvider;
import com.ms.p2p.service.impl.CertiFiCationServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

/**
 * Created by daimajia on 2015/4/19 添加dubbo接口.
 */
@Service
public class CeritiFicationProviderImpl implements CertiFiCationProvider {
    @Autowired
    CertiFiCationServiceImpl certiFiCationService;

    public String getCertiStatus(int userId) {
        return certiFiCationService.getCertiStatus(userId);
    }

    public Auth findByUserId(int userId) {
        return certiFiCationService.findByUserId(userId);
    }

    public Auth findById(String id) {
        return certiFiCationService.findById(id);
    }

    public List<Map<String, Object>> findPager(String userId, String userName, String realname, String begin_date, String end_date, String status, PageBean pageBean) {
        return certiFiCationService.findPager(userId,userName,realname,begin_date,end_date,status,pageBean);
    }

    public int findCount(String userId, String userName, String realname, String begin_date, String end_date, String status) {
        return certiFiCationService.findCount(userId,userName,realname,begin_date,end_date,status);
    }

    public int insert(Auth auth) {
        return certiFiCationService.insert(auth);
    }

    public int update(Auth auth) {
        return certiFiCationService.update(auth);
    }

    public int findOther(String id_number, Integer id) {
        return certiFiCationService.findOther(id_number,id);
    }
}
